package com.opennews.openplatform.security

/**
 * Traits are a structural construct of the language which allows:
 * - composition of behaviors
 * - runtime implementation of interfaces
 * - behavior overriding
 * - compatibility with static type checking/compilation
 * They can be seen as interfaces carrying both default implementations and state. A trait is defined using the trait keyword:
 *
 * http://docs.groovy-lang.org/next/html/documentation/core-traits.html
 */
trait UserBasicIdentity {
    String id
    String username
}
